<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  mounted() {
    // Wait for the live2d widget to load before initializing it
    setTimeout(() => {
      window.L2Dwidget.init({
        pluginRootPath: '/static/live2dw/',
        pluginJsPath: '/static/live2dw/lib/',
        pluginModelPath: '/static/live2dw/live2d-widget-model-wanko/assets/',
        model: { jsonPath: '/static/live2dw/live2d-widget-model-ni-j/assets/ni-j.model.json' },
        display: { position: 'right', width: 400, height: 500, hOffset: -90, vOffset: -80 },
        mobile: { show: true },
        log: false
      })
    }, 300)
  }
}
</script>

<style lang="scss"></style>
